//
public class string {
    public void test1()
    {
        //StringBuffer使用synchronized进行修饰使线程安全的
        StringBuffer stringBuffer = new StringBuffer();
        StringBuilder stringBuilder = new StringBuilder();

    }
}
